<!-- 用户列表 -->
<div class="pcontent">
<h3>角色管理<a class="btn btn-info btn-sm pull-right" href="javascript:void(0)" id="addNewBtn" onclick="addNewUser(this)" >添加角色</a></h3>
<table class="table table-striped table-bordered table-condensed">
	<tr>
		<th>ID</th>
		<th>角色</th> 
		<th>操作</th>
	</tr>
<volist name="list" id="li">
	<tr>
		<td width="40px" align="center">{$li.id}</td>
		<td>{$li.name}</td> 
		<td width="180px" align="center">
			<div class="btn-group"> 
				<a href="access/role_id/{$li.id}" class="btn btn-xs btn-info" href="javascript:void(0)">设置权限</a> 
				<a href="role_del/id/{$li.id}" class="btn btn-xs btn-danger" href="javascript:void(0)">删除</a>  
			</div>
		</td>
	</tr>
</volist>
</table>
<div class="modal fade" id="role-add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-dialog">
		 <div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
					&times;
				</button>
				<h4 class="modal-title" id="myModalLabel">
					添加角色
				</h4>
			</div>
			<div class="modal-body">
				<form id="bjy-form" class="form-inline" action="{:U('/Access/role_save')}" method="post">
					<input type="hidden" name="pid" value="0">
					<table class="table table-striped table-bordered table-hover table-condensed">
						<tr>
							<th width="12%">角色名：</th>
							<td>
								<input class="form-control" type="text" name="name">
							</td>
						</tr>
						<tr>
							<th></th>
							<td>
								<input class="btn btn-success" type="submit" value="添加">
							</td>
						</tr>
					</table>
				</form>
			</div>
		</div>
	</div>
</div>
</div>

<script language="javascript">
function addNewUser(obj){
	$('#role-add').modal('show');
}
</script>
<!-- 添加用户 --> 